import asyncio

from profiler_patches.game import Game
from profiler_patches.player import Player
from profiler_patches.sport import Sport
# 启用
from profiler_patches import apply_profiler_patches


# 定义主异步函数，用于调用所有异步方法
async def main():
    sport = Sport()
    await sport.async_football()
    sport.football()

    game = Game()
    await game.async_football()
    game.football()

    # player = Player()
    # # 如果 player.play() 也是异步的，同样需要用 await；如果是同步的，直接调用
    # player.play()


if __name__ == '__main__':
    # 通过 asyncio.run() 运行主异步函数
    asyncio.run(main())
